const { Schema, model } = require('mongoose');

const adminsSchema = new Schema({

  name: String,
  // 账号
  account: String,
  // 权限
  permissions: Boolean,
  // 状态
  state: {
    type: Boolean,
    default: true
  },
  // 密码
  password: String
}, { versionKey: false });
module.exports.adminsModel = model('adminsModel', adminsSchema, 'admins');